package com.sukaiyi.giteejavaapi.http;

import com.sukaiyi.giteejavaapi.http.model.HttpRequest;
import com.sukaiyi.giteejavaapi.http.model.HttpResponse;

import java.util.concurrent.CompletableFuture;

/**
 * @author sukaiyi
 * @date 2020/06/30
 */
public interface HttpService {

    void invoke(HttpRequest request, HttpEventCallback callback);

    CompletableFuture<HttpResponse> invoke(HttpRequest request);
}
